package com.ler.yrmall.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * spu图片
 * @author Leron
 */
@Data
@TableName("pms_spu_images")
public class SpuImagesEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * spu_id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long spuId;

    /**
     * 图片名称
     */
    private String imgName;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 是否默认
     */
    private Boolean isDefault;

}
